<form action="/test/up" method="post" enctype="multipart/form-data">
上传头像:<input type="file" name="avatar"><br>{{csrf_field()}}
<input type="submit" value="提交">
</form> 